const user = {
  state: {
    weixin: {

    },
    drawer: {
      isOpen: false,
      type: ''
    },
  },
  mutations: {
    UPDATE_WX_SELECTED: (state, value) => {
      state.weixin = Object.assign({}, value)
    },
    TOGGLE_DRAWER: (state, value) => {
      state.drawer = Object.assign({}, value)
    }
  },
  actions: {
    UpdateWxSelected({
      commit
    }, value) {
      commit('UPDATE_WX_SELECTED', value)
    },
    ToggleDrawer({
      commit
    }, value) {
      commit('TOGGLE_DRAWER', value)
    }
  }
}

export default user
